<?php echo $this->CP_MENU?>
<?php if (empty($this->LIST_POSTS)):?>
 
      <p style = "margin-top:120px" align = "center"><font color = "red" size = 3>Chưa đăng tin nào!</font></p>
<?php else:?>
<form action="" method="post" name="theform">
<input type="hidden" name="page" value="<?php echo $this->page?>"/>
<table width="100%" cellpadding="1" cellspacing="1" class="info_detail">
    <thead>
        <tr>
            <th width="100px">Hình</th>
            <th width="300px">Thông tin</th>
            <th width="170px">Quản lý</th>
            <?php if(POST_FREE==0):?><th>Thanh toán</th><?php endif;?>
            
            <th width="100px">Hiển thị</th>
        </tr>
    </thead>
    <tbody>
    <?php echo $this->LIST_POSTS?>
    </tbody>
    <tfoot>
        <tr>
            <?php if(POST_FREE):?>
            <td colspan="4" align="right">
            <?php else:?>
             <td colspan="5">
            <?php endif;?>
            <?php echo $this->PAGINATOR?>
            </td>
        </tr>
    </tfoot>
</table>
</form>
<?php endif;?>
<script language="javascript">

function form_change(page){	
    if ( typeof(page) == 'undefined'){
        page = 1;
    }
    document.theform.page.value=page;
	document.theform.submit();
}
</script> 
